﻿app.controller('config_register_new_controller', ['$scope', 'api', '$http', '$state', '$location', '$modal', '$filter', 'csTable', '$window', function ($scope, api, $http, $state, $location, $modal, $filter, csTable, $window) {
    $state.current.data.pageTitle = "常青云幼儿园管理系统试用申请";
    $state.current.data.pageSubTitle = "";
    $scope.$on('$viewContentLoaded', function () {
        App.initAjax();
    });
    var path = $state.params;
    api.defaultOption = { module: 'config', name: 'register' };
    $scope.item = {};
    $scope.submiting = false;
    $scope.successed = false;
    $scope.ok = function () {
        $scope.submiting = true;
        api.Save($scope.item, {
            error: function () {
                $scope.submiting = false;
            },
            success:function(){
                $scope.successed = true;
            },
            //successAbsulateUrl: "index.html",
            successText:"申请提交成功。"
        });
    };
}]);